<include file='Index/header' />
<script type="text/javascript">
$(document).ready(function(){
 $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});

 $("#old_password").formValidator({onshow:'请输入旧密码',onfocus:'密码应该为6-20位之间'}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});/*ajaxValidator({
	    type : "POST",
		url : "<{:U('public_edit_pwd')}>",
		async:false,
		success : function(data){	
            if( data == "1" ){
                return true;
			}else{
                return false;
			}
		},

		onerror : "原始密码错误",
		onwait : "请稍候..."
	});*/

 $("#password").formValidator({onshow:'请输入新密码',onfocus:'密码应该为6-20位之间'}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});
 $("#repassword").formValidator({onshow:"请输入重复密码",onfocus:"请输入两次密码不同。",oncorrect:"密码输入一致"}).compareValidator({desid:"password",operateor:"=",onerror:"请输入两次密码不同"});
 })
</script>
</head>

<body>

<!--add-tab-->
<div class="add-tab">
	<div class="at_tab">
		<a href="#" class="cur"><i>修改密码</i></a> 
	</div>
	<div class="clearall"></div>
</div>
<!--add-tab-->

<!--table-list-->
<div class="table-edit ">
	
	<form method="post" id="myform">
	<div class="table-edit_form">
		<div  class="te_tab_c">
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table-edit_tb">
			<tbody>
			<tr>
				<th width="100">用户名：</th>
				<td><{$Think.session.admin_9f_username}></td>
			</tr>			
			<tr>
				<th>真实姓名：</th>
				<td><{$data['realname']|escapeshow=###}></td>
			</tr>			
			<tr>
				<th>E-mail：</th>
				<td><{$data['email']|escapeshow=###}></td>
			</tr>

			<tr>
				<th> 旧密码：</th>
				<td><input type="password" class="sys_text" name="old_password" id="old_password"  /></td>
			</tr>
			<tr>
				<th >新密码：</th>
				<td><input type="password" class="sys_text" name="password" id="password"  /></td>
			</tr>			
			<tr>
				<th >重复密码：</th>
				<td><input type="password" class="sys_text" name="repassword" id="repassword"  /></td>
			</tr>

			</tbody>
		    </table>
			
			
		</div>

	</div>
	
	
	<div class="tools-edit">
		<table cellpadding="0" cellspacing="0" border="0" width="100%" class="tools-list_tb">
			<tr>
				<th width="100">&nbsp;</th>
				<td>
					<input type="submit" class="sys_blue_btn" value="提交" name="send" /> 
			
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<!--/table-list-->


</body>
</html>
